#!/bin/bash
date_time=$2
version=$2
aicard_num=$1

start_device=`expr $aicard_num \* 3`
end_device=`expr $aicard_num \* 3 + 2`
ph_card=`expr $aicard_num`

lock_file=r.lock_${aicard_num}

rm -f $lock_file
touch $lock_file

for device_id in `seq ${start_device} ${end_device}`
    do
            log_path=../../log/${date_time}/${version}/$device_id
            mkdir -p $log_path
            log_file=$log_path/test.log

            rm -f $log_file
            touch $log_file

            # echo $device_id
            sh sdaarun.sh ${device_id} $log_file &
done

wait

